# coding:utf-8
import tkinter as tk

root=tk.Tk()

#tk.Checkbutton()
'''v=[]
GIRlS=['西施','貂蝉','王昭君','杨玉环']
for girl in GIRlS:
    v.append(tk.IntVar())
    b=tk.Checkbutton(root,text=girl,variable=v[-1])
    b.pack(anchor='w')'''

#tk.Radiobutton()
'''v=tk.IntVar()

tk.Radiobutton(root,text='One',variable=v,value=1).pack(anchor='w')
tk.Radiobutton(root,text='Two',variable=v,value=2).pack(anchor='w')
tk.Radiobutton(root,text='Three',variable=v,value=3).pack(anchor='w')
tk.mainloop()'''


grop=tk.LabelFrame(root,text='做好的编程语言是？',padx=5,pady=5)
grop.pack(padx=10,pady=10)
LANDS=[('Python',1),('Java',2),('C or C++',3),('Ruby',4)]
v=tk.IntVar()
v.set(0)


for lang,num in LANDS:
    b=tk.Radiobutton(grop,text=lang,variable=v,value=num)
    b.pack(anchor='w')
tk.mainloop()